package cj.web.constants;

public enum GameAreaEnum {
	//报名所在学校区域
	QK("硚口","硚口"),
	JA("江岸","江岸"),
	JH("江汉","江汉"),
	QS("青山","青山"),
	DHFJQ("东湖风景区","东湖风景区"),
	WC("武昌","武昌"),
	HS("洪山","洪山"),
	WHGX("武汉高新","武汉高新"),
	HY("汉阳","汉阳"),
	WHJK("武汉经开","武汉经开"),
	JXQ("江夏区","江夏区"),
	DXH("东西湖","东西湖"),
	XZ("新洲","新洲"),
	HP("黄陂","黄陂"),
	CD("蔡甸","蔡甸"),
	OTHER("其他","其他"),
	;
    // 成员变量
    private String name;
    private String value;

    // 构造方法
    private GameAreaEnum(String name, String value) {
        this.name = name;
        this.value = value;
    }

    // 普通方法
    public static String getName(String value) {
        for (GameAreaEnum c : GameAreaEnum.values()) {
            if (c.getValue().equals(value)) {
                return c.name;
            }
        }
        return null;
    }

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}
}
